﻿using System;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;

namespace SkyPoint
{
    public class SkyObject : IComparable
    {
        public Coord Coordinates { get; set; }
        public string Name { get; set; }
        public string Designation { get; set; }
        public double Magnitude { get; set; }
        
        public Color ObjectColor { get; set; }



        public SkyObject()
        {
        }

        public SkyObject(Coord coordinates, string name, string designation, double magnitude, Color objectColor)
        {
            Coordinates = coordinates;
            Name = name;
            Designation = designation;
            Magnitude = magnitude;
            ObjectColor = objectColor;
        }

        public int CompareTo(object obj)
        {
            SkyObject skyObj = obj as SkyObject;
            return this.Magnitude.CompareTo(skyObj.Magnitude);
        }


        

       
    }
}
